package com.offcn.order.feign;

import com.offcn.entity.Result;
import com.offcn.order.pojo.PayLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("order")
@RequestMapping("/order")
public interface OrderFeign {
    /**
     * 根据用户名查询 交易日志
     */
    @RequestMapping("/findPayLog/{username}")
    public Result<PayLog> findPayLog(@PathVariable String username);






    @RequestMapping("/updateOrderStatus")
    public Result updateOrderStatus(@RequestParam(name = "out_trade_no") String out_trade_no, @RequestParam(name = "transaction_id") String transaction_id);
}
